package com.ruoyi.applet.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品对象 product
 * @author ruoyi
 * @date 2024-11-20
 */
public class ProductApplet extends PageInfo implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /** 产品id */
    private Long id;
    
    /** 分类id */
    @Excel(name = "分类id")
    private Long categoriesId;
    
    /** 编码 */
    @Excel(name = "编码")
    private String encode;
    
    /** 标题 */
    @Excel(name = "标题")
    private String title;
    
    /** 描述 */
    private String description;
    
    /** 图片地址，集合JSON，第一个是封面 */
    private String picturesPath;
    
    /** 详情 */
    private String details;
    
    /** 附加信息 */
    private String additionalInfo;
    
    /** 销量 */
    @Excel(name = "销量")
    private Long salesVolume;
    
    /** 状态 */
    @Excel(name = "状态")
    private Integer status;
    
    /** 搜索值 */
    @JsonIgnore
    private String searchValue;
    
    /** 创建者 */
    private String createBy;
    
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    
    /** 更新者 */
    private String updateBy;
    
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    
    /** 备注 */
    private String remark;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getCategoriesId() {
        return categoriesId;
    }
    
    public void setCategoriesId(Long categoriesId) {
        this.categoriesId = categoriesId;
    }
    
    public String getEncode() {
        return encode;
    }
    
    public void setEncode(String encode) {
        this.encode = encode;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getPicturesPath() {
        return picturesPath;
    }
    
    public void setPicturesPath(String picturesPath) {
        this.picturesPath = picturesPath;
    }
    
    public String getDetails() {
        return details;
    }
    
    public void setDetails(String details) {
        this.details = details;
    }
    
    public String getAdditionalInfo() {
        return additionalInfo;
    }
    
    public void setAdditionalInfo(String additionalInfo) {
        this.additionalInfo = additionalInfo;
    }
    
    public Long getSalesVolume() {
        return salesVolume;
    }
    
    public void setSalesVolume(Long salesVolume) {
        this.salesVolume = salesVolume;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getSearchValue() {
        return searchValue;
    }
    
    public void setSearchValue(String searchValue) {
        this.searchValue = searchValue;
    }
    
    public String getCreateBy() {
        return createBy;
    }
    
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public String getUpdateBy() {
        return updateBy;
    }
    
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public String getRemark() {
        return remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoriesId", getCategoriesId())
                .append("encode", getEncode())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("picturesPath", getPicturesPath())
                .append("details", getDetails())
                .append("additionalInfo", getAdditionalInfo())
                .append("salesVolume", getSalesVolume())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
